// this declaration will look for a file named `my.rs` and will
// insert its contents inside a module named `my` under this scope.
mod my;

fn function() {
    println!("called `function()` in split.rs");
}

fn main() {
    my::function();
    function();
    my::indirect_access();
    my::nested::function();
    // if we want to add the following statement, we need to make mod inaccessible pub in my.rs
    // my::inaccessible::public_function();
}